package com.bluefish.bltuan.dao;

import java.util.Date;
import java.util.List;

import com.bluefish.bltuan.module.Category;
import com.bluefish.bltuan.module.shop.TuanGou;
import com.bluefish.bltuan.util.PageIndex;

public interface ShopDao extends AbstractDao<TuanGou, Integer>{

	List<TuanGou> list(Date date, boolean needPublished);

	List<TuanGou> listBefore(Date date, boolean needPublished);
	
	List<TuanGou> listBefore(Date date, int size, boolean needPublished);

	List<TuanGou> listBefore(Date date, PageIndex pageIndex, boolean needPublished);

	List<TuanGou> listBeforeByCity(Date date, PageIndex pageIndex,
			Category city, boolean needPublished);

	List<TuanGou> listAfterByCity(Date date, PageIndex pageIndex, Category city
			, boolean needPublished);

	List<TuanGou> listByCity(Date date, Category city, boolean needPublished);

	List<TuanGou> listAtDateAndCity(String currentDate, Category city);

	List<TuanGou> listNotAfterByCity(PageIndex pageIndex, Date date,
			Category city, boolean needpublished);

	List<TuanGou> listByNick(String nick, boolean needPublished);

}
